package com.jhgk.jhcee.data.auth.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.FieldNameConstants;
import org.springframework.format.annotation.DateTimeFormat;

/**
* @Description：系统菜单表
*/
@Data
@NoArgsConstructor
@FieldNameConstants
@EqualsAndHashCode(callSuper = false)
@TableName("sys_menu_info")
@ApiModel(value="SysMenuInfo对象", description="系统菜单表")
public class SysMenuInfo implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键ID")
    @TableId(value = "menu_id", type = IdType.AUTO)
    private Long menuId;

    @ApiModelProperty(value = "父级ID")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "前端路由")
    @TableField("path")
    private String path;

    @ApiModelProperty(value = "前端组件")
    @TableField("component")
    private String component;

    @ApiModelProperty(value = "重定向路由")
    @TableField("redirect")
    private String redirect;

    @ApiModelProperty(value = "菜单样式")
    @TableField("sys_menu_meta_id")
    private Long sysMenuMetaId;

    @ApiModelProperty(value = "菜单级数")
    @TableField("level")
    private Integer level;

    @ApiModelProperty(value = "菜单排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "前端名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;


}

